package com.kongmou.springReview.commonCfg.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestEvent {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(EventConfig.class);
		DemoPublish demoPublish = context.getBean(DemoPublish.class);
		demoPublish.publishEvent("from demoPush's message");
		context.close();
	}

}
